﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Admin Console | Bill Message | Edit Messages Check In | Emm</title>
<%@page import="java.util.*" %>
<%
	String Code = (String)session.getAttribute("LanguageCode");
	String SubCode = (String)session.getAttribute("LanguageSubcode");
    Locale locale = new Locale(Code, SubCode);
	ResourceBundle resource = ResourceBundle.getBundle("resource", locale);
%>
<link href="/css/Adminconsole/Main.css" rel="stylesheet" />
<link href="/css/custom/jquery-ui-1.9.1.custom.min.css" rel="stylesheet" />
<script src="/js/jquery-1.8.3.min.js"></script>
<script src="/js/jquery-ui-1.9.1.custom.min.js"></script>
<script src="/js/sharedData.js"></script>
<script src="/js/adminconsole/AdminShareData.js"></script>
<script src="/js/simpleservice.js"></script>
<script src="/js/adminconsole/RoomsManager/RoomTypes/roomtypes.js"></script>
<script>
	$(loadAmenity());
	$(loadTax());
	$(function(){EditRoomTypes(<%=request.getParameter("id")%>);});
</script>
<jsp:include page="/adminconsole/language.jsp" flush="true" />
</head>
<body>
	<header>
		<div class="brand">
			<div name="hotelName"><h2>iHotel</h2></div>
			<div name="pageName">Admin Console</div>
            	<jsp:include page="/adminconsole/menu.jsp" flush="true" />
		</div>
	</header>
	<div class="main">
		<div class="breadcrumb">
			<% out.print(resource.getString("AdminConsole.Page.RoomTypes"));%>
		</div>
        <div class="destitle"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.suggest"));%></div>
		<div class="content">
<table width="100%" border="0" cellpadding="5" cellspacing="0" id="tableform">
              <tbody>
              <tr>
                <th colspan="2" class="th_01"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.enter"));%></th>
              </tr>
              <tr>
                <td align="right">&nbsp;</td>
                <td align="left"></td>
              </tr>              
              <tr>
                <td align="right"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.shortname"));%>*</td>
                <td align="left" class="comments">
                	<input id="shortname" name="shortname" value=""  type="text" size="20" maxlength="20"></td>
              </tr>
              <tr>
                <td width="22%" align="right" valign="top"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.upload"));%> </td>
                <td align="left">
					<input type="file" id="pic" name="pic" >
						<em>(<% out.print(resource.getString("AdminConsole.Page.RoomTypes.dimensions"));%> 300px x 225px)</em>
				
                </td>
              </tr>
			  
			   <tr>
                <td width="22%" align="right" valign="top"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.caption"));%> </td>
                <td align="left">
				<input id="caption" name="caption" value="" type="text" maxlength="50" >
				 </td>
              </tr>
              <tr>
                <td width="22%" align="right" valign="top"><% out.print(resource.getString("AdminConsole.Page.center.description"));%>*</td>
                <td align="left" class="comments">				
					<textarea id="description" name="description" cols="55" rows="5" maxlength="500"></textarea>
                </td>
                </tr>
                <tr>
                	<td align="right" valign="top">&nbsp;</td>
                	<td align="left">&nbsp;</td>
              	</tr>
              	<tr>
                <td align="right" valign="top"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.stdOcc"));%>*</td>
                	<td align="left">
                  		<select  name="stdOcc" id="stdOcc">
							<option style="color:#000000" value="0">0</option>
                            <option style="color:#000000" value="1">1</option>
                            <option style="color:#000000" value="2">2</option>
                            <option style="color:#000000" value="3">3</option>
                            <option style="color:#000000" value="4">4</option>
                            <option style="color:#000000" value="5">5</option>
                            <option style="color:#000000" value="6">6</option>
                            <option style="color:#000000" value="7">7</option>
                            <option style="color:#000000" value="8">8</option>
                            <option style="color:#000000" value="9">9</option>
                            <option style="color:#000000" value="10">10</option>
						</select>
                  <% out.print(resource.getString("AdminConsole.Page.RoomTypes.persons"));%></td>
              </tr>
              <tr>
                <td align="right" valign="top"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.stdOcc"));%></td>
                <td align="left">	
				
                		<select name="higherOcc" id="higherOcc">
                			<option style="color:#000000"  value="0">0</option>
                            <option style="color:#000000"  value="1">1</option>
                            <option style="color:#000000"  value="2">2</option>
                            <option style="color:#000000"  value="3">3</option>
                            <option style="color:#000000"  value="4">4</option>
                            <option style="color:#000000"  value="5">5</option>
                            <option style="color:#000000"  value="6">6</option>
                            <option style="color:#000000"  value="7">7</option>
                            <option style="color:#000000"  value="8">8</option>
                            <option style="color:#000000"  value="9">9</option>
                            <option style="color:#000000"  value="10">10</option>                  
                        </select> 
                  <% out.print(resource.getString("AdminConsole.Page.RoomTypes.persons"));%></td>
              </tr>
              <tr>
                <td align="right" valign="top"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.exallow1"));%> </td>
                <td align="left">
					<select name="exBed" id="exBed" >
                     	<option style="color:#000000"  value="0">0</option>
                        <option style="color:#000000"  value="1">1</option>
                        <option style="color:#000000"  value="2">2</option>
                        <option style="color:#000000"  value="3">3</option>
                        <option style="color:#000000"  value="4">4</option>
                        <option style="color:#000000"  value="5">5</option>
                        <option style="color:#000000"  value="6">6</option>
                        <option style="color:#000000"  value="7">7</option>
                        <option style="color:#000000"  value="8">8</option>
                        <option style="color:#000000"  value="9">9</option>
                        <option style="color:#000000"  value="10">10</option>  
					</select>
                  <% out.print(resource.getString("AdminConsole.Page.RoomTypes.exallow2"));%></td>
              </tr>
              <tr>
                <td align="right"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.roomintype"));%> </td>
                <td align="left">
                	<b><span id="roomamount"> 0 </span></b>
                <% out.print(resource.getString("AdminConsole.Page.RoomTypes.rooms"));%></td>
              </tr>
                            <tr>
                <td align="right" valign="top">&nbsp;</td>
                <td align="left">&nbsp;</td>
              </tr>
              <tr>
                <td align="right" valign="top"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.selectA"));%>* </td>
                <td align="left">
                	<table border="0" cellpadding="5" cellspacing="0" width="25%">
                  		<tbody>
                    		<tr>
                      			<td align="center" width="40%"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.avaiA"));%><br>
                      <select name="mainAmenity" id="mainAmenity" size="6" multiple="multiple" style="width: 250px;"></select>
                       </td>
                      <td align="center" width="20%">
                      	<span >
                        	<input name="Submit2" onClick="moveAmenities(mainAmenity,selectedAmenity)" value="&gt;&gt;" type="button">
                        </span>
                        <span style="display:block; padding-top:5px;">
                        	<input name="Submit3" onClick="moveAmenities(selectedAmenity,mainAmenity)" value="&lt;&lt;" type="button">
                      	</span>
                      </td>
                      <td align="center" width="40%"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.selectA"));%><br>
                          <select name="selectedAmenities" id="selectedAmenity" size="6" multiple="multiple" style="width: 250px;">
                          </select>
                      </td>
                    </tr>
                  </tbody>
                </table>
                </td>
              </tr>
              <tr>
                <td align="right" valign="top"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.rackrate"));%>*<br>
                  (<% out.print(resource.getString("AdminConsole.Page.RoomTypes.listprice"));%>)</td>
                <td align="left"><table width="90%" border="0" cellspacing="0" cellpadding="5">
                  <tbody><tr>
                    <td width="28%"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.baseprice"));%></td>
                    <td width="44%"> <% out.print(resource.getString("AdminConsole.Page.RoomTypes.higherprice"));%></td>
                    <td width="28%"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.extrabedprice"));%> </td>
                  </tr>
                  <tr>
                    <td nowrap="nowrap">&nbsp;B
                      <input id="basePrice" type="text" size="7" maxlength="18" value="0.00"></td>
                    <td nowrap="nowrap">&nbsp;B
                      <input id="higherPrice"  type="text" size="5" maxlength="18" value="0.00"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.perperson"));%></td>
                    <td nowrap="nowrap">&nbsp;B
                      <input id="exBedPrice"  type="text" size="5" maxlength="18" value="0.00"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.each"));%></td>
                  </tr>
                  
                </tbody></table></td>
              </tr>
              
              <tr>
                <td align="right">&nbsp;</td>
                <td align="left" >&nbsp;</td>
              </tr>
              <tr>
                <td align="right" valign="top"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.selectTax"));%> </td>
                <td align="left"> 
                    <table id="taxList" width="60%" border="0" cellspacing="0" cellpadding="0"></table>                  
				</td>
              </tr>
              
              <tr>
                <td align="right">&nbsp;</td>
                <td align="left">&nbsp;</td>

              </tr>
              <tr>
                <td align="right">&nbsp;</td>
                <td align="left"><% out.print(resource.getString("AdminConsole.Page.RoomTypes.note"));%></td>
              </tr>
              <tr>
                <td align="right">&nbsp;</td>
                <td align="left">
                  <input name="Submit5" type="button" value="<% out.print(resource.getString("AdminConsole.Page.center.save"));%>" onClick="AddRoomtype()">
                  <input name="Submit52" type="button" onClick="" value="<% out.print(resource.getString("AdminConsole.Page.center.cancel"));%>"></td>
              </tr>
              <tr>
                <td align="right">&nbsp;</td>
                <td align="left">&nbsp;</td>
              </tr>
            </tbody></table>
		</div>
	</div>

	<div id="BlankDialog" style="display:none; padding:5px 0 0 10px;"></div>
	<div id="loadingScreen"></div>
	<div name="dynamic" style="display:none"></div>
</body>

</html>